import React, { Component } from "react";
import { Form, Input } from "antd";
const Item = Form.Item;
class AddForm extends Component {
  formRef = React.createRef();
  componentDidMount() {
    // this.props.setForm(this.props.form);
  }

  render() {
    const layout = {
      labelCol: {
        span: 4,
      },
      wrapperCol: {
        span: 18,
      },
    };
    return (
      <Form ref={this.formRef}>
        <Item
          label="角色名称"
          rules={[{ required: true, message: "角色名称不能为空" }]}
				{ ...layout }
				name='role'
        >
          <Input placeholder="请输入角色名称" />
        </Item>
      </Form>
    );
  }
}

export default AddForm;
